<?php

namespace App\Listeners;

use App\Helpers\PayTrait;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class RecivedListener
{
    use PayTrait;
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle($event)
    {
        $this->order = $event->order;
        info('立即出车统计'.json_encode($this->order));
        $this->statisticsOrder($this->order);
    }
}
